<?php
/**
 * @desc 列表搜索字段配置
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/10/12
 * Time: 17:00
 */

return [
    'role_getList' => [
        ['type'=>'input', 'index'=>'name,display_name,description', 'value'=>'', 'operate'=>'%like%', 'placeholder'=>'角色名称|显示标题|描述'],
        ['type'=>'daterange', 'index'=>'created_at', 'value'=>[], 'operate'=>'between', 'placeholder'=>'创建日期'],
    ],

    'permission_getList' => [
        ['type'=>'input', 'index'=>'access,name,display_name,description', 'value'=>'', 'operate'=>'%like%', 'placeholder'=>'权限|权限名称|显示名称|描述'],
    ],

    'admin_getList' => [
        ['type'=>'input', 'index'=>'username,mobile', 'value'=>'', 'operate'=>'%like%', 'placeholder'=>'用户名|手机号'],
        ['type'=>'input', 'index'=>'email', 'value'=>'', 'operate'=>'=', 'placeholder'=>'邮箱'],
        ['type'=>'select', 'index'=>'status', 'value'=>'', 'operate'=>'=', 'placeholder'=>'请选择', 'options'=>orderStatusArr()],
        ['type'=>'daterange', 'index'=>'created_at', 'value'=>[], 'operate'=>'between', 'placeholder'=>'创建日期'],
    ],

    'attach_getList' => [
        ['type'=>'input', 'index'=>'username,mobile', 'operate'=>'%like%', 'placeholder'=>'用户名|手机号'],
        ['type'=>'input', 'index'=>'email', 'operate'=>'=', 'placeholder'=>'邮箱'],
        ['type'=>'select', 'index'=>'status', 'operate'=>'=', 'placeholder'=>'请选择', 'options'=>orderStatusArr()],
        ['type'=>'daterange', 'index'=>'created_at', 'operate'=>'between', 'placeholder'=>'创建日期'],
    ],

    'download_getList' => [
        ['type'=>'input', 'index'=>'attach_name,creator_name', 'operate'=>'%like%', 'placeholder'=>'附件名|下载用户'],
        ['type'=>'input', 'index'=>'module', 'operate'=>'=', 'placeholder'=>'模块'],
        ['type'=>'daterange', 'index'=>'created_at', 'operate'=>'between', 'placeholder'=>'下载日期'],
    ],

    'loopImg_getList' => [
        ['type'=>'input', 'index'=>'abstract,redirect', 'operate'=>'%like%', 'placeholder'=>'简介|跳转链接'],
        ['type'=>'daterange', 'index'=>'start_time', 'operate'=>'between', 'placeholder'=>'开始日期'],
        ['type'=>'daterange', 'index'=>'end_time', 'operate'=>'between', 'placeholder'=>'结束日期'],
        ['type'=>'daterange', 'index'=>'created_at', 'operate'=>'between', 'placeholder'=>'创建日期'],
    ],

    'tag_getList' => [
        ['type'=>'input', 'index'=>'name', 'operate'=>'%like%', 'placeholder'=>'标签'],
        ['type'=>'select', 'index'=>'type', 'value'=>'', 'operate'=>'=', 'placeholder'=>'请选择', 'options'=>tagTypeArr()],
        ['type'=>'daterange', 'index'=>'created_at', 'operate'=>'between', 'placeholder'=>'创建日期'],
    ],

    'coupon_getList' => [
        ['type'=>'input', 'index'=>'name', 'operate'=>'%like%', 'placeholder'=>'名称|简介'],
        ['type'=>'select', 'index'=>'type', 'value'=>'', 'operate'=>'=', 'placeholder'=>'请选择分类', 'options'=>couponTypeArr()],
        ['type'=>'select', 'index'=>'usable_range', 'value'=>'', 'operate'=>'=', 'placeholder'=>'请选择使用范围', 'options'=>couponUseArr()],
        ['type'=>'select', 'index'=>'platform', 'value'=>'', 'operate'=>'=', 'placeholder'=>'请选择使用平台', 'options'=>couponUseArr()],
        ['type'=>'daterange', 'index'=>'created_at', 'operate'=>'between', 'placeholder'=>'创建日期'],
    ],

    'brand_getList' => [
        ['type'=>'input', 'index'=>'name,first_word,remark', 'operate'=>'%like%', 'placeholder'=>'名称|首字母|简介'],
        ['type'=>'daterange', 'index'=>'created_at', 'operate'=>'between', 'placeholder'=>'创建日期'],
    ],

    'attribute_getList' => [
        ['type'=>'input', 'index'=>'name,first_word,remark', 'operate'=>'%like%', 'placeholder'=>'名称|首字母|简介'],
        ['type'=>'daterange', 'index'=>'created_at', 'operate'=>'between', 'placeholder'=>'创建日期'],
    ],

    'category_getList' => [
        ['type'=>'input', 'index'=>'name,en_name,remark', 'operate'=>'%like%', 'placeholder'=>'名称|英文名|简介'],
        ['type'=>'daterange', 'index'=>'created_at', 'operate'=>'between', 'placeholder'=>'创建日期'],
    ],

    'goods_getList' => [
        ['type'=>'input', 'index'=>'name,first_word,remark', 'operate'=>'%like%', 'placeholder'=>'名称|首字母|简介'],
        ['type'=>'daterange', 'index'=>'created_at', 'operate'=>'between', 'placeholder'=>'创建日期'],
    ],
];